<include file="Public:head" />
<div class="col-xs-12">
    <div class="tabbable">
        <ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab">
            <li class="active"> <a href="{:U('index')}">银行卡列表</a> </li>
            <li> <a href="{:U('add')}">添加银行卡</a> </li>
        </ul>
        <div class="tab-content">
            <table class="layui-table">
                <tr>
                    <th width="50"><input onclick="check_all(this)" type="checkbox"/></th>
                    <th width="100">编号</th>
                    <th width="80">图片</th>
                    <th>银行名称</th>
                    <th width="120">操作</th>
                </tr>
                <volist name="list" id="vo">
                <tr>
                    <td><input name="ids[]" rel="ids" value="{$vo.id}" type="checkbox"/></td>
                    <td width="50">{$vo.id}</td>
                    <td>
                        <notempty name='vo.icon'>
                            <input type="hidden" id="{$vo.id}" value="{$vo.icon}">
                            <a href="#">
                                <img src="{$vo.icon}" width="50" onclick="img_view('{$vo.id}')">
                            </a>
                        <else/>
                        无
                        </notempty>
                    </td>
                    <td>{$vo['name']}</td>
                    <td>
                        <a href="{:U('edit',array('id'=>$vo['id']))}" class="layui-btn layui-btn-mini">编辑</a>
                        <a href="javascript:void(0);" onclick="del('{:U('del')}', {$vo.id})" class="confirm ajax-get layui-btn layui-btn-mini layui-btn-danger">删除</a>
                    </td>
                </tr>
                </volist>
            </table>
            <div class="panel-footer ft clearfix">
                <div class="pull-left">
                    <a class="btn btn-danger btn-sm" onclick="delAll('{:U('del')}')"><span class="glyphicon glyphicon-trash"></span> 删除</a>
                </div>
                <div class="layui-laypage layui-laypage-default pull-right">
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>
<include file="Public:foot" />